from tortoise import Model, fields
class FoundCalendar(Model):
    id = fields.BigIntField(pk=True)
    record_status = fields.SmallIntField(default=1, description='记录状态:1-有效;0-无效')
    create_time = fields.DatetimeField(auto_now_add=True, description='记录创建时间')
    update_time = fields.DatetimeField(auto_now=True, description='记录修改时间')

    base_date = fields.DateField(null=True, description='日期')
    week_day_name = fields.CharField(max_length=200, default='', description='周几')
    found_workable = fields.SmallIntField(default=1, description='是否工作:1-有效;0-无效')

    class Meta:
        table = "found_calendar"
        table_description = "基金日历"
